-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency csharpier to 0.30.4 #67
base: master
Are you sure you want to change the base?
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
caa8adf
to
2d3ba9d
Compare
2d3ba9d
to
9abb6c9
Compare
9abb6c9
to
2b97184
Compare
2b97184
to
948c553
Compare
948c553
to
900a7e7
Compare
900a7e7
to
dd6f142
Compare
dd6f142
to
6036050
Compare
6036050
to
f825a88
Compare
f825a88
to
26ade78
Compare
26ade78
to
8c0abba
Compare
8c0abba
to
7f4848a
Compare
7f4848a
to
f94dc77
Compare
Quality Gate passedIssues Measures |
f94dc77
to
730e2c1
Compare
730e2c1
to
2991bf7
Compare
2991bf7
to
885eb56
Compare
Quality Gate passedIssues Measures |
885eb56
to
0940b7c
Compare
0940b7c
to
4aa2afb
Compare
4aa2afb
to
0995b22
Compare
Quality Gate passedIssues Measures |
0995b22
to
3d9cdd1
Compare
3d9cdd1
to
2bebf14
Compare
2bebf14
to
440313e
Compare
440313e
to
8f45a25
Compare
8f45a25
to
2fd5b9c
Compare
Quality Gate passedIssues Measures |
This PR contains the following updates:
0.24.2
->0.30.4
Release Notes
belav/csharpier (csharpier)
v0.30.4
Compare Source
0.30.4
What's Changed
Formatting deletes
unsafe
modifier #1416Formatting a using directive with an unsafe modifier resulted in the lose of the unsafe keyword
CSharpier keeps adding a newline every time a file is formatted #1408
In some cases if a file ended with a comment, CSharpier would add a new extra blank line above the comment each time it formatted the file
Full Changelog: belav/csharpier@0.30.3...0.30.4
v0.30.3
Compare Source
What's Changed
CSharpier.MsBuild doesn't fail the github action anymore #1357
The changes for 1311 caused CSharpier.MsBuild to not report unformatted files as errors on linux.
Thanks go to @PetSerAl for the fix
v0.30.2
Compare Source
What's Changed
Collection expression inside a dictionary adds unexpected new line #1390
Failed syntax tree validation reported when trailing comma added before a trailing comment #1388
With the following code, CSharpier will add a trailing comma before the trailing comment.
CSharpier's syntax tree validation was incorrectly reporting this as a failure.
v0.30.1
Compare Source
What's Changed
Revert tool command back to
dotnet-csharpier
, it was supposed to be changed tocsharpier
for 1.0.0v0.30.0
Compare Source
Breaking Changes
The CSharpier dotnet tool no longer supports net6 & net7.
What's Changed
Support C# 13 & dotnet 9. #1318
CSharpier now supports dotnet 9 along with formatting all C# 13 language features.
Inconsistent Formatting for new() Operator Compared to Explicit Object Constructors #1364
Implicit and explicit object initialization with constructors was not formatted consistently
Adds additional space before each member access in verbatim interpolated multiline string #1358
When an interpolated verbatim string contained line breaks, the code within the interpolations would contain extra spaces.
Inserting trailing comma with trailing comment causes problems. #1354
CSharpier would insert a trailing comma after a trailing comment and format the end result poorly.
Double line break before collection expression in field #1351
CSharpier was inserting an extra line break on a long field name followed by a collection expression to initialize it.
Full Changelog: belav/csharpier@0.29.2...0.30.0
v0.29.2
Compare Source
What's Changed
Comments don't follow tabs indent style #1343
Prior to
0.29.2
CSharpier was converting any tabs within the block of a multiline comment to spaces.csharpier-ignore-start
now supported in object initializers #1342Fixed extra new line between cast and collection expression. #1334
Support custom extensions in .editorconfig #1273
As of
0.29.0
CSharpier could format non-standard file extensions, but only if configured in thecsharpierrc
file. This is now supported with an.editorconfig
Full Changelog: belav/csharpier@0.29.1...0.29.2
v0.29.1
Compare Source
What's Changed
Sorting of usings with underscore differs from Visual Studio #1327
CSharpier now sorts
_
to the bottom of usings.Process cannot access the file "....net8.0\any\server.log" while running multiple extensions. #1324
CSharpier Server now uses a log file name based on the port that it is starting on to avoid concurrency issues trying to access the same log file
Full Changelog: belav/csharpier@0.29.0...0.29.1
v0.29.0
Compare Source
Breaking Changes
The formatting command will now exit with an error code of 1 if one of the target files cannot be compiled #1131
Prior to 0.29.0 if csharpier encountered a file that could not be compiled it would treat it as a warning and exit with a code of 0.
As of 0.29.0 a file that cannot be compiled is now treated as an error and csharpier will exit with code 1
What's Changed
Enforce trailing commas in object and collection initializer #668
CSharpier will now add trailing commas automatically where appropriate. It will collapse to a single line and remove the trailing comma in cases where everything fits on one line.
Many thanks go to @dawust for the contribution.
Support for formatting custom file extensions #1220
Prior to 0.29.0 csharpier would only format files with an extension of .cs or .csx. It is now possible to configure csharpier to format other files extensions, and to specify configuration options per file extension.
See https://csharpier.com/docs/Configuration#configuration-overrides for more details.
Invalid blank line being added with lambda returning collection expression #1306
Switch expressions do not break consistently with other lambdas #1282
Prior to 0.29.0 csharpier would break before the
=>
in switch expression arms. It now breaks after them to be consistent with other lambda expressions.Formatting of empty collection initializer for huge type #1268
Empty collection expression initializers formatting was including a break plus indentation resulting in poor formatting.
Thanks go to @Rudomitori for the contribution
Switch expression single line broken when preceded by comment #1262
Improved formatting for short expression arms that have a leading comment.
Incorrect formatting of ternary expression with a comment after an interpolated string #1258
Fixed bug with comments on a ternary expression that resulted in invalid code.
Formatting for indexer parameters should mostly be the same as for method parameters. #1255
Improved formatting of indexed properties that contained attributes.
Do not overwrite
CSharpier_Check
when already set. #1314Fixed a bug with csharpier.msbuild where it would overwrite the
CSharpier_Check
value in some cases.Thanks go to @PetSerAl for the contribution
The CLI has contradictory message about directoryOrFile being required #1296
The help text for the cli has been improved to better indicate when
directoryOrFile
is required.Thanks go to @marcinjahn for the contribution
Fullwidth unicode characters should be accounted for in print width #260
CSharpier now considers full width unicode characters such as
가
to be 2 spaces wide when determining how to format code.Full Changelog: belav/csharpier@0.28.2...0.29.0
v0.28.2
Compare Source
What's Changed
Pipe to
dotnet csharpier
fails when subdirectory is inaccessible #1240When running the following CSharpier would look for config files in subdirectories of the
pwd
. This could lead to exceptions if some of those directories were inaccessible.Thanks go to @jamesfoster for reporting the issue.
Full Changelog: belav/csharpier@0.28.1...0.28.2
v0.28.1
Compare Source
What's Changed
Third party .editorconfig leading to: Error Failure parsing editorconfig files #1227
When CSharpier encountered an invalid
.editorconfig
file, it would throw an exception and not format files. These files could appear in 3rd party code (for example within node_modules). CSharpier now ignores invalid lines in.editorconfigs
Thanks go to @K0Te for reporting the issue
Full Changelog: belav/csharpier@0.28.0...0.28.1
v0.28.0
Compare Source
What's Changed
Fix dedented method call if there is a long chain #1154
In some cases of method chains, the first invocation would end up dedented.
Extra newline in switch case statement with curly braces [#1192][https://github.com/belav/csharpier/issues/1192](https://redirect.github.com/belav/csharpier/issues/1192)2
If a case statement started with a block it would get an extra new line
Thanks go to @emberTrev for reporting the bug.
Handle more editorconfig glob patterns. #1214
The editorconfig parsing was not handling glob patterns that contained braces.
v0.27.3
Compare Source
[*.cs]
indent_size = 4
tab_width = 4
v0.27.2
Compare Source
What's Changed
Orphan variable since 0.27.1 #1153
0.27.1 introduced the following formatting regression, resulting in short variables being orphaned on a line
Thanks go to @aurnoi1 for reporting the bug
Better support for CSharp Script #1141
Version 0.27.1 parsed
.csx
files as if they were C#, so it could only format simple ones. It now parses them as CSharpScript files so it can format them properly.Thanks go to @Eptagone for reporting the bug.
Full Changelog: belav/csharpier@0.27.1...0.27.2
v0.27.1
Compare Source
What's Changed
Support for CSharp Script #1141
Previously CSharpier would only format files matching
*.cs
which prevented it from formatting C# script files. It now formats*.{cs,csx}
Thanks go to @Eptagone for the suggestion
Weird formatting of invocation chain #1130
Invocation chains that started with an identifier <= 4 characters were causing a strange break in the first method call. There were other edge cases cleaned up while working on the fix.
Thanks go to @Rudomitori for reporting the issue
"Failed syntax tree validation" for raw string literals #1129
When an interpolated raw string changed indentation due to CSharpier formatting, CSharpier was incorrectly reporting it as failing syntax tree validation.
Thanks go to @Rudomitori for reporting the issue
Adding experimental support using HTTP for the extensions to communicate with CSharpier #1137
The GRPC support added in 0.27.0 increased the size of the nuget package significantly and has been removed.
CSharpier can now start a kestrel web server to support communication with the extensions once they are all updated.
Full Changelog: belav/csharpier@0.27.0...0.27.1
v0.27.0
Compare Source
What's Changed
Improve formatting of lambda expressions #1066
Many thanks go to @Rudomitori for contributing a number of improvements to the formatting of lambda expressions.
Some examples of the improvements.
readonly ref
is changed toref readonly
causing error CS9190 #1123CSharpier was sorting modifiers in all places they occurred. Resulting the following change that led to code that would not compile.
Thanks go to @aurnoi1 for reporting the bug
#if at the end of collection expression gets eaten #1119
When a collection expression contained a directive immediately before the closing bracket, that directive was not included in the output.
Thanks go to @Meowtimer for reporting the bug
CSharpier.MsBuild - Set Fallback for dotnetcore3.1 or net5.0 applications #1111
CSharpier.MsBuild made an assumption that the project being built would be built using net6-net8 and failed when the project was built with earlier versions of dotnet.
It now falls back to trying to use
net8
Thanks go to @samtrion for the contribution
Allow empty/blank lines in object initializers #1110
Large object initializers now retain single empty lines between initializers.
Thanks go to @Qtax for the suggestion
Add option to allow formatting auto generated files. [#1055][https://github.com/belav/csharpier/issues/1055](https://redirect.github.com/belav/csharpier/issues/1055)5
By default CSharpier will not format files that were generated by the SDK, or files that begin with
<autogenerated />
comments.Passing the option
--include-generated
to the CLI will cause those files to be formatted.Format raw string literals indentation #975
CSharpier now adjusts the indentation of raw string literals if the end delimiter is indented.
Thanks go to @jods4 for reporting the issue
Incorrect indentation on a multi-line statement split by comments [#968][https://github.com/belav/csharpier/issues/968](https://redirect.github.com/belav/csharpier/issues/968)8
CSharpier was not properly indenting an invocation chain when it was being split by comments.
Thanks go to @tyrrrz for reporting the issue
Adding experimental support for GRPC for the extensions to communicate with CSharpier #944
Currently the extensions for CSharpier send data to a running instance of CSharpier by piping stdin/stdout back and forth. This approach has proved problematic and hard to extend.
As of 0.27.0, CSharpier can run a GRPC server to allow communication with the extensions once they are all updated.
Full Changelog: belav/csharpier@0.26.7...0.27.0
v0.26.7
Compare Source
What's Changed
Keep Field.Method() on the same line when breaking long method chain #1010
0.26.0 introduced changes that broke long invocation chains on fields/properties as well as methods. That change has been reverted after community feedback.
Full Changelog: belav/csharpier@0.26.6...0.26.7
v0.26.6
Compare Source
What's Changed
CSharpier incorrectly reports problems with differing line endings as "The file did not end with a single newline"#1067
If CSharpier was validating that a file was formatted, and that file contained only
\n
but CSharpier was configured to use\r\n
, then it would report the problem asThe file did not end with a single newline
CSharpier added support for reading line ending configuration from an
.editorconfig
which could containend_of_line = crlf
so some users were unknowingly configuring CSharpier to use\r\n
CSharpier now correctly reports the problem as
The file contained different line endings than formatting it would result in.
Full Changelog: belav/csharpier@0.26.5...0.26.6
v0.26.5
Compare Source
What's Changed
0.26.4 sorts
NSubstitute
beforeNewtonsoft.Json
#1061The using sorting in
0.26.4
was taking into account case.Thanks go to @loraderon for contributing the fix.
Extra newline added when using a collection expression with { get; } #1063
A collection expression in a property initializer was including an extra new line.
Thanks go to @SapiensAnatis for contributing the fix.
Comments at the end of a collection expression should be indented #1059
When the close bracket on a collection expression had a leading comment, it had the same indentation as the bracket.
Thanks go to @fgimian for reporting the problem
Full Changelog: belav/csharpier@0.26.4...0.26.5
v0.26.4
Compare Source
What's Changed
Spacing bugs related to C#12 collection expressions #1049 #1047
There were a number of cases where CSharpier was including extra blank lines, an extra space, or not formatting contents of collection expressions.
Thanks go to @fgimian and @JoshWoodArup for reporting the issues
Usings sorting differs based on system culture #1051
The sorting of Usings was done in a culture specific manner, resulting in unexpected behavior.
In Czech (cs-CZ) the
ch
is a "single letter" which is placed betweenh
andi
, which resulted in the following sorting behavior.Thanks go to @davidkudera for the contribution
Full Changelog: belav/csharpier@0.26.3...0.26.4
v0.26.3
Compare Source
What's Changed
C#12 Collection expressions are prefixed with two spaces #1009
Thanks go to @Jackenmen for reporting the problem.
CSharpier inserts extra spaces around the contents of collection expressions #1002
Thanks go to @golavr for reporting the problem.
Configuration files not respected for stdin #1028
When piping a file to csharpier via stdin, CSharpier uses the working directory to locate any configuration files. This was broken with
0.26.0
.Thanks go to @kikniknik for reporting the problem.
Modify CSharpier.MSBuild to use NETCoreSdkVersion to detect which sdk to use for running CSharpier #1022 #1027
Previously CSharpier.MSBuild was using
targetFramework
to determine which version of CSharpier to run. This was problematic when there were multiple target frameworks, or the project was targeting a superset such asnet8.0-windows
It now makes use of
NETCoreSdkVersion
to determine which version of CSharpier to run.Thanks go to @Tyrrrz for the suggestion and to @Cjewett for the contribution to make it work
CSharpierIgnore not respected when recursively finding .editorconfig
When looking for
.editorconfig
files, CSharpier looks for them recursively in the current directory. This logic was not taking into account any files or directories ignored by a.csharpierignore
.Thanks go to @sebastieng84 for the contribution.
Optimize editorconfig lookups when piping files #1039
CSharpier now only looks for an
.editorconfig
for the file being piped to CSharpier. Under normal usage it recursively looks for all possible.editorconfig
files for the given directory.Full Changelog: belav/csharpier@0.26.2...0.26.3
v0.26.2
Compare Source
What's Changed
CSharpier.MsBuild does not support DotNet 8 #1012
When using CSharpier.MsBuild in a setting where the project targeted net8.0 and only the net8 sdk was installed, CSharpier.MsBuild would attempt to run the net7.0 version of csharpier which failed.
Thanks go to @aditnryn for the fix
Global System using directives should be sorted first #1003
Global using were not sorting
System
to the top, which was inconsistent with regular using.Thanks go to @vipentti for the fix
Full Changelog: belav/csharpier@0.26.1...0.26.2
v0.26.1
Compare Source
What's Changed
Editorconfig with duplicated sections was freezing IDE's #989
CSharpier was unable to parse an
.editorconfig
file that contained duplicate sections and would crash. This would result in a hung IDE.Thanks go to @echoix for helping track this down.
A .csharpierrc file anywhere above a file now takes priority over any .editorconfig #987
Given the following setup
Originally with 0.26.0, the
/src/ProjectName/.editorconfig
file would be used for determining the configuration options for a file withinsrc/ProjectName
. This resulted in the existing options within.csharpierrc
being ignored.With 0.26.1, if a
.csharpierrc
exists anywhere above a given file, it will be used to determine the configuration options.Thanks go to @parched for reporting the issue.
Full Changelog: belav/csharpier@0.26.0...0.26.1
v0.26.0
Compare Source
What's Changed
EditorConfig Support
CSharpier will now read configuration options from an
.editorconfig
. See https://csharpier.com/docs/Configuration for more details.Net8 Support
CSharpier now supports the .net8 sdk. It still supports net6 and net7.
Sorting of using directives #661
CSharpier now sorts using statements. It follows the following rules
Remove line before the content of a bracketless if/else statement #979
Thanks go to @Infinite-3D for reporting
Support C# 12 primary constructors on structs #969
CSharpier now supports primary constructors on structs
Support C# 12 collection expressions [#964][https://github.com/belav/csharpier/issues/964](https://redirect.github.com/belav/csharpier/issues/964)4
CSharpier now supports collection expressions
Thanks go to @meenzen for reporting
MSBuild - when a file fails to compile csharpier interferes with getting you clickable links to the compilation errors. #957
Build errors will now display properly when using CSharpier.MSBuild
Format element access properly in long invocation chains #956
Improvements to visible whitespace in console output. #953
When using
cshapier --check
whitespace is now only visible in the following situationsWhen an otherwise empty line contains whitespace
When a line has extra trailing whitespace
MSBuild is not encoding using UTF8 #947
When CSharpier.MSBuild ran into a failed csharpier check, it was not encoding the std-error output with UTF8. This resulted in messages such as
Thanks go to @Tyrrrz for reporting
Comment inside raw string literal is lost when file is formatted. #937
Thanks go to @Tyrrrz for reporting
Allow line endings to be configurable #935
CSharpier now supports the following options for line endings. The default is
auto
Thanks go to @phuhl for the feature request
Avoid breaking only around binary expression but not binary expression itself #924
Thanks go to @Nixxen for reporting
Nested loops without brackets should not be indented #867
Thanks go to @Rudomitori for the contribution
Full Changelog: belav/csharpier@0.25.0...0.26.0
v0.25.0
Compare Source
Breaking Changes
Improve if directive formatting #404
The
preprocessorSymbolSets
configuration option is no longer supported.CSharpier can now parse and format the full range of
#if
preprocessor statements so it is no longer required.What's Changed
Sort Modifiers #725
CSharpier will now sort modifiers according to the defaults for IDE0036
Thanks go to @glmnet for the contribution
Support c# 12 features #883
CSharpier now supports formatting
Primary Constructors,
Alias any typ, and
Default lambda parameters
Support for log levels #875
CSharpier now supports
--loglevel
with the CLI andCSharpier_LogLevel
for MSBuild. This changes the level of logging output. Valid options are:Thanks go to @samtrion for the suggestion
CSharpier removes blank line before unsafe block #917
CSharpier was not honoring lines that appeared before
unsafe
Thanks go to @fgimian for reporting the bug
Adding ability to bypass CSharpier when using CSharpier.MsBuild #914
In some instances it is desirable to completely bypass CSharpier.MsBuild, this can now be done with the
CSharpier_Bypass
property.Thanks go to @OneCyrus for the suggestion
Strong Name Sign Assemblies #911
CSharpier is now strong name signed so that it can be used in packages that are strong name signed.
Thanks go to @TwentyFourMinutes for the suggestions and to @goelhardik for strong name signing Ignore
Don't format files in obj folders #910
CSharpier will no longer format
cs
files that are in anobj
folder.CSharpier.MsBuild runs once for each framework, can it be more efficient. #900
When CSharpier.MsBuild was in a csproj that had multiple target frameworks, it would run once for each target framework. It will now run just a single time.
CSharpier.MsBuild returns exit code 1 when ManagePackageVersionsCentrally is set to true #898
CSharpier.MsBuild was not running correctly when used in a project that had centrally managed package version.
Thanks go to @adc-cjewett for reporting the bug
Multiline comments always indented with spaces when formatting with tabs #891
With
useTabs: true
, CSharpier was formatting multiline comments with a space instead of a tab.Thanks go to @MonstraG for reporting the bug.
File scoped namespaces should be followed by a blank line #861
CSharpier now adds an empty line after file scoped namespaces if there is not already one
Full Changelog: belav/csharpier@0.24.2...0.25.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.